package com.letoken.platform.repo.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * Le账户-用户铸币发行信息
 * </p>
 *
 * @author 作者
 * @since 2022-12-10
 */
@Getter
@Setter
@TableName("app_user_issue")
@ApiModel(value = "AppUserIssue对象", description = "Le账户-用户铸币发行信息")
public class AppUserIssue extends Model<AppUserIssue> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
      @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Integer userId;

    @ApiModelProperty("已发行数量")
    @TableField("issue_amount")
    private BigDecimal issueAmount;

    @ApiModelProperty("已流通数量")
    @TableField("circulation_amount")
    private BigDecimal circulationAmount;

    @ApiModelProperty("待流通数量")
    @TableField("circulation_remain")
    private BigDecimal circulationRemain;

    @ApiModelProperty("上一次周期释放时间")
    @TableField("reward_time")
    private LocalDateTime rewardTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("下个周期倒计时")
    @TableField("count_down")
    private Integer countDown;

    @ApiModelProperty("版本号")
    @TableField("version")
    private Integer version;


    @Override
    public Serializable pkVal() {
        return this.userId;
    }

}
